package cn.edu.scau.cmi.wangmaoren.hibernate.domain;

import java.util.HashSet;
import java.util.Set;

/**
 * Major entity. @author MyEclipse Persistence Tools
 */
public class Major implements java.io.Serializable
{

	// Fields
	private Long id;
	private String name;
	private Set students = new HashSet(0);

	// Constructors
	/** default constructor */
	public Major()
	{
	}

	/** minimal constructor */
	public Major(Long id)
	{
		this.id = id;
	}

	/** full constructor */
	public Major(Long id, String name, Set students)
	{
		this.id = id;
		this.name = name;
		this.students = students;
	}

	// Property accessors
	public Long getId()
	{
		return this.id;
	}

	public void setId(Long id)
	{
		this.id = id;
	}

	public String getName()
	{
		return this.name;
	}

	public void setName(String name)
	{
		this.name = name;
	}

	public Set getStudents()
	{
		return this.students;
	}

	public void setStudents(Set students)
	{
		this.students = students;
	}

}
